<div class="box"> <!-- Box begins here -->
	<h2>Thêm tag</h2>
	<!--
	Standard form within a fieldset tag;
-->
	<?php 
		$error = $this->error;
		$data = $this->data;
	?>
<form method="post" action="" enctype="multipart/form-data"><!-- Form -->
					<fieldset><legend>Thông tin tag</legend>
					<div class="input_field">
						<label for="article">Tiêu đề bài viết</label>
 												
 						<?php echo $this->formText("article",$data['article'],array('readonly'=>'readonly')); ?>
					</div>
					<div class="input_field">
						<label for="name">Tên tag</label>
 												
 						<?php echo $this->formText("name",$data['name'],null); ?>
 						<?php 
 							if(isset($error['name'])){
							echo '<span class="validate_error">'.$error['name'].'</span>';
							}
 						?>
					</div>
					
					</fieldset>
					<input class="submit" type="submit" value="Lưu" />
			</form><!-- /Form -->
</div> <!-- END Box-->
<script>
    $(function() {
        $( "#name" ).autocomplete({
            source: "<?php echo $this->url(array('module'=>'administrator','controller'=>'tag','action'=>'datanamejson'));?>",
            minLength: 1
        });
    });
</script>